package ms.platform.progress.dto;

import java.io.Serializable;

/**
 * 进度查看按天显示item
 * @author Kevin Deng
 *
 */
public class ProgressViewItemVo implements Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -2007456261093380821L;
	private String date; //显示日期 月日
	private String reportDate; //汇报日期 年月日
	private String status; //显示状态
	private String recordStatus; //记录的状态
	private String progress; //当前进度
	private Integer days; //状态量级
	private String planProgress;//计划进度
	private String planPro;//计划完成比例
	private String currentPro;//当前进度
	private String accPro;//实际完成比例
	private String stamp;//是否是计划完成后
	private int isWeekend;//判断周几
	private String lastTime;//判断是否提交进度
	private String time;//判断是否提交进度
	private String receiveFlag;//
	private String accPre;//计划精度
	

	public String getAccPre() {
		return accPre;
	}

	public void setAccPre(String accPre) {
		this.accPre = accPre;
	}

	public String getReceiveFlag() {
		return receiveFlag;
	}

	public void setReceiveFlag(String receiveFlag) {
		this.receiveFlag = receiveFlag;
	}

	public String getTime() {
		return time;
	}

	public void setTime(String time) {
		this.time = time;
	}

	public String getLastTime() {
		return lastTime;
	}

	public void setLastTime(String lastTime) {
		this.lastTime = lastTime;
	}

	public int getIsWeekend() {
		return isWeekend;
	}

	public void setIsWeekend(int isWeekend) {
		this.isWeekend = isWeekend;
	}

	public String getStamp() {
		return stamp;
	}

	public void setStamp(String stamp) {
		this.stamp = stamp;
	}

	public String getPlanProgress() {
		return planProgress;
	}

	public void setPlanProgress(String planProgress) {
		this.planProgress = planProgress;
	}

	public String getPlanPro() {
		return planPro;
	}

	public void setPlanPro(String planPro) {
		this.planPro = planPro;
	}

	public String getCurrentPro() {
		return currentPro;
	}

	public void setCurrentPro(String currentPro) {
		this.currentPro = currentPro;
	}

	public String getAccPro() {
		return accPro;
	}

	public void setAccPro(String accPro) {
		this.accPro = accPro;
	}

	public String getReportDate() {
		return reportDate;
	}
	public String getRecordStatus() {
		return recordStatus;
	}
	public void setRecordStatus(String recordStatus) {
		this.recordStatus = recordStatus;
	}
	public void setReportDate(String reportDate) {
		this.reportDate = reportDate;
	}
	public String getDate() {
		return date;
	}
	public void setDate(String date) {
		this.date = date;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public String getProgress() {
		return progress;
	}
	public void setProgress(String progress) {
		this.progress = progress;
	}
	public Integer getDays() {
		return days;
	}
	public void setDays(Integer days) {
		this.days = days;
		/*if(this.recordStatus == null || this.recordStatus.equals("-1")){
			this.setStatus("C"); //初始化状态
			return;
		}
		if(days == null){
			this.setStatus("Z"); //正常
		}else if(days.intValue() == 0){
			this.setStatus("Z"); //正常
		}else if(days.intValue() > 0){
			this.setStatus("Y"); //延期
		}else{
			this.setStatus("T"); //提前
		}*/
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((date == null) ? 0 : date.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		ProgressViewItemVo other = (ProgressViewItemVo) obj;
		if (date == null) {
			if (other.date != null)
				return false;
		} else if (!date.equals(other.date))
			return false;
		return true;
	}
	
	
}
